package com.rd.student.jiaji.class4.suyan.zrrd.day04;

public class Demo08 {
    public static void main(String[] args) {
        //计算1加到100的值
        int i=1;
        int sum=0;
        for (i=1;i<=100;i++){
            sum=sum+i;

        }
        System.out.println(sum);

    }
}
